package com.itany.utils;

/**
 * Auther:ws@itany.com
 * Date:20-10-9 上午11:09
 * Version:1.0
 * Description:
 */

public class ParamUtils {
    public static boolean isNull(String s){
        if (null == s || "".equals(s)){
            return true;
        }
        return false;
    }

    public static String escapeParam(String s){
        if (!isNull(s)){
            char[] str = s.toCharArray();

            StringBuffer buffer = new StringBuffer();
            for (char n: str){
                buffer.append("/" +n);
            }
            return buffer.toString();
        }
        return null;
    }
}
